#!/usr/bin/env python
# -*- coding:utf8 -*-
# uncompyle6 version 2.15.1
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.10 (default, Jul  1 2017, 13:36:56) 
# [GCC 4.4.6 20110731 (Red Hat 4.4.6-4)]
# Embedded file name: ./paas/app/migrations/0001_initial.py
# Compiled at: 2017-11-16 15:44:28
u"""
Tencent is pleased to support the open source community by making \u84dd\u9cb8\u667a\u4e91(BlueKing) available.
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at http://opensource.org/licenses/MIT
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License.
"""
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings

class Migration(migrations.Migration):
    dependencies = [
     migrations.swappable_dependency(settings.AUTH_USER_MODEL)]
    operations = [
     migrations.CreateModel(name='App', fields=[
      (
       'id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
      (
       'name', models.CharField(unique=True, max_length=20, verbose_name=u'应用名称')),
      (
       'code', models.CharField(help_text=u'此处请用英文字母', unique=True, max_length=30, verbose_name=u'应用编码')),
      (
       'introduction', models.TextField(verbose_name=u'应用简介')),
      (
       'creater', models.CharField(max_length=20, verbose_name=u'创建者')),
      (
       'created_date', models.DateTimeField(auto_now_add=True, null=True, verbose_name=u'创建时间', db_index=True)),
      (
       'state', models.SmallIntegerField(default=1, help_text=u'app的开发状态', verbose_name=u'应用开发状态', choices=[(0, u'已下架'), (1, u'开发中'), (3, u'测试中'), (4, u'已上线'), (8, u'正在提测'), (9, u'正在上线'), (10, u'正在下架')])),
      (
       'is_already_test', models.BooleanField(default=False, help_text=u'app在测试环境下架或者开发中状态，修改该字段为False。', verbose_name=u'是否已经提测')),
      (
       'is_already_online', models.BooleanField(default=False, help_text=u'app正式环境未下架，该字段为True。', verbose_name=u'是否已经上线')),
      (
       'first_test_time', models.DateTimeField(help_text=u'记录应用首次提测时间', null=True, verbose_name=u'应用首次提测时间', db_index=True, blank=True)),
      (
       'first_online_time', models.DateTimeField(help_text=u'记录应用首次上线时间', null=True, verbose_name=u'应用首次上线时间', db_index=True, blank=True)),
      (
       'language', models.CharField(default=b'python', choices=[('python', 'Python'), ('php', 'PHP')], max_length=50, blank=True, null=True, verbose_name=u'语言')),
      (
       'auth_token', models.CharField(max_length=36, null=True, verbose_name=b'Token', blank=True)),
      (
       'developer', models.ManyToManyField(related_name='developers', verbose_name=u'开发者', to=settings.AUTH_USER_MODEL))], options={'db_table': 'paas_app'
        }),
     migrations.CreateModel(name='SecureInfo', fields=[
      (
       'id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
      (
       'app_code', models.CharField(unique=True, max_length=30, verbose_name=u'对应的appcode')),
      (
       'vcs_type', models.SmallIntegerField(default=1, help_text=u'app的开发状态', verbose_name=u'版本控制类型', choices=[(0, u'Git'), (1, u'SVN')])),
      (
       'vcs_url', models.CharField(max_length=1024, null=True, verbose_name=u'版本库URL', blank=True)),
      (
       'vcs_username', models.CharField(max_length=50, null=True, verbose_name=u'版本库用户名', blank=True)),
      (
       'vcs_password', models.CharField(max_length=50, null=True, verbose_name=u'版本库密码', blank=True)),
      (
       'db_type', models.CharField(default=b'mysql', choices=[('mysql', 'MySQL'), ('postgresql', 'PostgreSQL'), ('oracle', 'Oracle'), ('db2', 'DB2'), ('sqlserver', 'SQL Server')], max_length=20, blank=True, null=True, verbose_name=u'数据库类型')),
      (
       'db_host', models.CharField(max_length=1024, null=True, verbose_name=u'数据库HOST', blank=True)),
      (
       'db_port', models.IntegerField(default=3306, null=True, verbose_name=u'数据库PORT', blank=True)),
      (
       'db_name', models.CharField(max_length=30, null=True, verbose_name=u'数据库名称', blank=True)),
      (
       'db_username', models.CharField(max_length=50, null=True, verbose_name=u'数据库用户名', blank=True)),
      (
       'db_password', models.CharField(max_length=50, null=True, verbose_name=u'数据库密码', blank=True))], options={'db_table': 'paas_app_secureinfo',
        'verbose_name': u'app安全相关信息',
        'verbose_name_plural': u'app安全相关信息'
        })]
